package com.jt.controller;/**
 * @Author 金帮嘉诚 @Date 2021-07-23 星期五 10:23
 */
/*本类用于测试*/

import com.jt.pojo.User;
import com.jt.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**知识点*/
@RestController
@RequestMapping("user")
public class UserController {
    @Autowired
    private UserService userService;

    @RequestMapping("getAll")
    public List<User> getAll(){
        return userService.getAll();
    }


}
